package coreentity

import (
	"core/coreinfo"
	"core/corestruct"
	"core/coreutil"
	"reflect"
)

type HtCodeLog struct {
	Id int64 `json:"id,string"                         gorm:"column:id;primaryKey;comment:主键;autoIncrement:false;"`

	PrjName  string            `json:"prjName"      validate:"max=20"   gorm:"column:prj_name;size:20;DEFAULT:'';not null;comment:代码名称;"`
	Bid      int64             `json:"bid,string"                       gorm:"column:bid;DEFAULT:0;not null;comment:关联编号;"`
	Lx       string            `json:"lx"           validate:"max=50"   gorm:"column:lx;size:50;DEFAULT:'';not null;comment:类型;memo:BaseEntity,BaseDto、Action;"`
	FullName string            `json:"fullName"     validate:"max=100"  gorm:"column:full_name;size:100;DEFAULT:'';not null;comment:类名或者Action Url;"`
	Name     string            `json:"name"         validate:"max=50"   gorm:"column:name;size:50;DEFAULT:'';not null;comment:中文名称;"`
	Memo     string            `json:"memo"         validate:""                     gorm:"column:memo;type:longtext;not null;comment:内容;"`
	CrtDt    corestruct.MyTime `json:"crtDt"                            gorm:"column:crt_dt;not null;comment:创建日期;"`
}

func (p *HtCodeLog) TableName() string {
	return "HtCodeLog"
}
func HtCodeLogInit() {
	var mcls = &HtCodeLog{}
	var m = &corestruct.MyClass{
		Name:     "开发日志表",
		Ename:    "",
		FullName: "",
		Memo:     "",
		Fileds:   nil,
		PrjName:  coreinfo.PRJ_NAME,
		Type:     reflect.TypeOf(mcls),
	}
	coreutil.StructUtil.AddEntity(m)
}
